[index]

Do Command

Syntax

do <expression> do "<command>"

Description

The do command causes Oracle Media Objects to evaluate the <expression> and then execute the resulting string as an Oracle Media Talk command. The do command is useful for building commands whose operands are determined dynamically. <expression> is any valid Oracle Media Talk expression, handler name, container, or chunk expression, and <command> is any valid Oracle Media Talk command. Please note that the do command will be removed from the product in the future.

Notes

Do treats one specific line as a script and can be used to start a program, execute a command, or carry out any single line of Oracle Media Objects operations.

Examples

choose text tool beep 3 put 4 + 5 into msg Next, type the following lines in the Message Box and press Enter after each: do line 1 of field "test" do line 2 of field "test" do line 3 of field "test" on mouseUp if the class name of the target is "button" then else pass mouseUp end if
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.